<?php
/* SVN FILE: $Id$ */
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @version       $Revision$
 * @modifiedby    $LastChangedBy$
 * @lastmodified  $Date$
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $html->charset(); ?>
	<title>
		<?php __('オンラインストアの管理 &gt; '); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $html->css('depot');
		echo $html->css('admin');
		echo $html->css('form_helper');
	?>
</head>
<body>
	<div id="container">
		<div id="banner">
			<h1><?php echo ( isset($title_for_layout)? $title_for_layout : '書棚の管理'); ?></h1>
		</div>
		<div id="columns">
			<div id="side">
				<?php if (!empty($user) && $user != null ){ ?>
				<?php echo $html->link('商品リスト',array('controller' => 'products','action' => 'index')); ?><br />
				<?php echo $html->link('発送',array('controller' => 'products','action' => 'ship' )); ?>
				<hr />
				<?php echo $html->link('ユーザの追加',array('controller' => 'login','action' => 'add_user')); ?><br />
				<?php echo $html->link('ユーザの一覧',array('controller' => 'login','action' => 'list_users')); ?><br />
				<hr />
				<?php echo $html->link('ログアウト',array('action' => 'logout' )); ?>
				<?php } ?>
			</div>
			<div id="main">
				<?php $session->flash(); ?>
				<?php echo $content_for_layout; ?>
			</div>
	</div>
	<?php echo $cakeDebug; ?>
</body>
</html>